﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Talento21.Modelo;
using Talento21.Negocio.Servicio;

namespace Talento21.Pages.Competencia
{
    public partial class ListarNiveles : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SrvCompetenciaEmp srvCompetenciaEmp = new SrvCompetenciaEmp();
            InfCompetenciasEmp competenciaEmpresa = new InfCompetenciasEmp();

            competenciaEmpresa = srvCompetenciaEmp.ObtenerCompetenciasPorEmpresaYIdCompetencia(int.Parse(Session["Emp_Rut"].ToString()), int.Parse(Context.Request.QueryString["IdCompetencia"].ToString()));
            lblCompetencia.Text = competenciaEmpresa.Nombre;
        }

        protected void btnVolver_Click(object sender, EventArgs e)
        {
            Response.Redirect("Listar.aspx");
        }
    }
}